package com.cheng.service;

import com.cheng.common.exception.CommonException;
import com.cheng.data.entity.AcceptInfoEntity;
import com.cheng.data.vo.AcceptInfoVO;
import com.cheng.data.vo.StatisticsVO;

import java.util.List;
import java.util.Map;

/**
 * @author: ChengJW
 * @date: 2021/11/8 20:57
 * @version: 1.0
 * @description: 受理信息表 acpt_info
 */
public interface AcceptInfoService {

    /**
     * @author: ChengJW
     * @params: [entity]
     * @return: int
     * @date: 2021/9/20
     * @description: 插入 AcceptInfo 信息
     */
    int insertAcceptInfo(AcceptInfoEntity entity) throws CommonException;

    /**
     * @author: ChengJW
     * @params: [entity]
     * @return: java.util.List<com.cheng.data.entity.AcceptInfoEntity>
     * @date: 2021/9/20
     * @description: 查询 AcceptInfo 信息
     */
    List<AcceptInfoEntity> selectAcceptInfo(AcceptInfoEntity entity) throws CommonException;

    /**
     * @author: ChengJW
     * @params: [map]
     * @return: java.util.List<com.cheng.data.entity.AcceptInfoEntity>
     * @date: 2021/9/22
     * @description: 根据条件查询 AcceptInfo 信息
     */
    List<AcceptInfoEntity> selectAcceptInfoList(Map<String,Object> map) throws CommonException;

    /**
     * @author: ChengJW
     * @params: [map]
     * @return: int
     * @date: 2021/9/23
     * @description: 根据条件修改 acceptInfo 信息
     */
    int updateAcceptInfo(AcceptInfoEntity entity) throws CommonException;

    /**
     * @author: ChengJW
     * @params: [entity]
     * @return: int
     * @date: 2021/9/23
     * @description: 删除 AcceptInfo 信息
     */
    int deleteAcceptInfo(AcceptInfoEntity entity) throws CommonException;

    /**
    * @author: ChengJW
    * @params: [atCrediteCode, atCode]
    * @return: void
    * @date: 2021/12/18
    * @description: 根据统一社会信用代码，批量修改管辖机关代码
    */
    void updateBatchAcceptInfo(AcceptInfoVO acceptInfoVO) throws CommonException;

    /**
    * @author: ChengJW
    * @params: [map]
    * @return: java.util.List<com.cheng.data.vo.StatisticsVO>
    * @date: 2021/12/20
    * @description: 统计受理信息
    */
    List<StatisticsVO> queryStatisticsAcceptList(Map<String,Object> map) throws CommonException;
}
